import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

public class Main {
	
	public static void main(String[] args) {
	    File file = new File("input.txt");

	    
		try {
			FileInputStream in = new FileInputStream(file);
			BTree tr1 = new BTree(in);
			char ch = 0;
			while(in.available() != 0 && (ch != '\n'))
			{
				ch = (char) in.read();
			}
			BTree tr2 = new BTree(in); 
			
			System.out.println("Is similar: " + tr1.isSimilar(tr2));
			System.out.println("Is equal: " + tr1.isEqual(tr2));
			System.out.println("Is mirror similar: " + tr1.isMirrorSimilar(tr2));
			System.out.println("Is mirror equal: " + tr1.isMirrorEqual(tr2));

		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	  }
}
